﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns="urn:test"
           targetNamespace="urn:test"
           elementFormDefault="qualified"
           attributeFormDefault="unqualified">

  <xs:element name="mySink">
    <xs:complexType>
      <xs:sequence>
        <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
      </xs:sequence>
      <xs:attribute name="name" type="xs:string" use="required" />
      <xs:attribute name="attr" type="EventTextFormatting" use="required" />
      <xs:attribute name="formatterName" type="xs:string" use="optional" />
    </xs:complexType>
  </xs:element>

  <xs:simpleType name="EventTextFormatting">
    <xs:restriction base="xs:string">
      <xs:enumeration value="None" />
      <xs:enumeration value="Indented" />
    </xs:restriction>
  </xs:simpleType>

</xs:schema>